#include <stdio.h>
#include "zlib.h"

/*
	Não funciona. Usar zpipe.c
*/

int main(void)
{
	int compressedSize, inicialSize, i, individuo[5] = {0, 0, 0, 0, 0};

	printf("Individuo: ");
	for (i = 0; i < 5; ++i)
		printf("%d ", individuo[i]);
	printf("\n");
	
	inicialSize = sizeof(individuo);

	printf("Initial size: %d\n", inicialSize);

	compressedSize = gzdeflate( individuo, Z_DEFAULT_COMPRESSION);

	printf("Compressed size: %d\n", compressedSize);

	return 0;
}
